package com.baozun.houji.me.adapter

import com.baozhun.mall.common.base.BaseListAdapter
import com.baozun.houji.me.BR
import com.baozun.houji.me.R
import com.baozun.houji.me.databinding.ItemSystemMsgChildBinding
import com.baozun.houji.me.model.bean.MsgItemBean
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * @Title：
 * @Description：
 * @Author：xing.luo
 * @Since：2022/12/17
 * @Version：1.0.0
 */
class SystemMsgChildAdapter(data: MutableList<MsgItemBean>) : BaseListAdapter<MsgItemBean, ItemSystemMsgChildBinding>(
    R.layout.item_system_msg_child, data
) {
    override fun convert(holder: BaseDataBindingHolder<ItemSystemMsgChildBinding>, item: MsgItemBean) {
        super.convert(holder, item)
        holder.dataBinding?.setVariable(BR.model, item)
    }
}